Piwik\Plugins\API\Filter\DataComparisonFilter B

Total Complexity 93
Dependencies 19
Dependents 7
Total lines 452
Lines of code 319
Logical lines of code 225
Comment lines 95
Methods 22
Properties 13

Methods 22

Method Rating Maintainability Complexity Lines of code
compareChangePercents()
A
43 13 45
compare()
A
46 11 36
requestReport()
A
45 10 36
__construct()
A
46 9 36
computeChangePercent()
S
63 7 9
checkMultiplePeriodCompare()
S
59 6 15
formatComparisonTables()
S
55 5 20
getReportsToCompare()
S
58 5 16
getMetadataFromModifiedParams()
S
56 4 16
getSegmentNameFromReport()
S
59 4 16
isCompareParamsPresent()
S
75 3 3
getColumnMappings()
S
62 2 12
checkComparisonLimit()
S
72 2 5
getIndividualComparisonRowIndices()
S
69 2 6
getComparisonSeriesIndex()
S
74 2 4
isRequestMultiplePeriod()
S
67 2 8
getPrettyComparisonLabelFromSeriesIndex()
S
60 1 12
getComparisonSeriesLabelSuffixFromParts()
S
71 1 5
getCompareSegments()
S
69 1 6
getComparePeriods()
S
70 1 5
getCompareDates()
S
70 1 5
shouldIncludeTrendValues()
S
79 1 3